﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RegCompany.aspx.cs" Inherits="HZ.DrugTrade.Web.RegCompany"
    Title="企业注册" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="lib/style/global.css" />

    <script type="text/javascript" src="lib/scripts/My97DatePicker/WdatePicker.js"></script>

</head>
<body>
    <form id="form1" runat="server">

    <div>
    <div class="maincon">
    <div class="note">添加企业</div>
    <div class="note2"></div>
        <table >
            <tr>
                <th align="right" style="width:120px">
                    企业编号：</th>
                <td align="left">
                    <asp:TextBox ID="txtCompanyID" runat="server" Width="130px" ReadOnly="True"></asp:TextBox><font color="red">(*)</font>
                    <asp:RequiredFieldValidator
                        ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtCompanyID"
                        ErrorMessage="*" Display="Dynamic">（必填）</asp:RequiredFieldValidator>
                    
                </td>
                <th align="right">
                    企业类型：</th>
                <td align="left">
                    <asp:DropDownList ID="DllType" runat="server" AutoPostBack="True" 
                        onselectedindexchanged="DllType_SelectedIndexChanged">
                        <asp:ListItem Text="请选择" Value=""></asp:ListItem>
                        <asp:ListItem Text="生产企业" Value="0"></asp:ListItem>
                        <asp:ListItem Text="经营企业" Value="1"></asp:ListItem>
                        <asp:ListItem Value="2">配送企业</asp:ListItem>
                        <asp:ListItem Text="生产企业直接配送" Value="3"></asp:ListItem>
                        <asp:ListItem Text="经营企业直接配送" Value="4"></asp:ListItem>
                    </asp:DropDownList><font color="red">(*)</font>
                </td>
            </tr>
            <tr>
                <th align="right" style="width:120px">
                    企业名称：
                </th>
                <td align="left">
                    <asp:TextBox ID="txtcompanyname" runat="server" Width="180px"></asp:TextBox><font color="red">(*)</font>
                    <asp:RequiredFieldValidator
                        ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtcompanyname"
                        ErrorMessage="*" Display="Dynamic">（必填）</asp:RequiredFieldValidator>
                    
                </td>
                <th align="right">
                    固定电话：
                </th>
                <td align="left">
                    <asp:TextBox ID="txtTelNo" runat="server"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                        ControlToValidate="txtTelNo" ErrorMessage="固定电话填写有误" 
                        ValidationExpression="(\(\d{3,4}\)|\d{3,4}-)?\d{7,8}" Display="Dynamic"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <th align="right">
                    联系人：
                </th>
                <td align="left">
                    <asp:TextBox ID="txtContactPerson" runat="server"></asp:TextBox><font color="red">(*)</font>
                    <asp:RequiredFieldValidator
                        ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="txtContactPerson" ErrorMessage="*" Display="Dynamic">（必填）</asp:RequiredFieldValidator>
                </td>
                <th align="right">
                    联系人手机：
                </th>
                <td align="left">
                    <asp:TextBox ID="txtCellNo" runat="server"></asp:TextBox><font color="red">(*)</font>
                    <asp:RequiredFieldValidator
                        ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtCellNo"
                        ErrorMessage="*" Display="Dynamic">（必填）</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ErrorMessage="联系人手机填写有误" ControlToValidate="txtCellNo" 
                        ValidationExpression="[0]{0,1}\d{11}" Display="Dynamic"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <th align="right">
                    法人代表：
                </th>
                <td align="left">
                    <asp:TextBox ID="txtLayMan" runat="server"></asp:TextBox>
                </td>
                <th align="right">
                    公司地址：
                </th>
                <td align="left">
                    <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th align="right">
                    （生产或经营）许可证：
                </th>
                <td align="left">
                    <asp:TextBox ID="txtBusinessCertificate" runat="server"></asp:TextBox>
                </td>
                <th align="right">
                    （生产或经营）许可证有效期：
                </th>
                <td align="left">
                <div id="isshows" runat="server">
                    <asp:TextBox ID="txtBusinessCertificateDate" runat="server" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" Enabled="false"></asp:TextBox>
                      </div>
                             <asp:CheckBox ID="ckBusinessCertificateDate" runat="server"   Text="长期" 
                            AutoPostBack="True" 
                        oncheckedchanged="ckBusinessCertificateDate_CheckedChanged"  Enabled="false" /> 
                </td>
            </tr>
            <tr>
                <th align="right">
                    传真：
                </th>
                <td align="left">
                    <asp:TextBox ID="txtFax" runat="server"></asp:TextBox>
                </td>
                <th align="right">
                    网址：
                </th>
                <td align="left">
                    <asp:TextBox ID="txtWebsite" runat="server"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                        ErrorMessage="公司网址填写有误" ControlToValidate="txtWebsite" 
                        ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?" 
                        Display="Dynamic"></asp:RegularExpressionValidator>
                </td>
            </tr>
           <%-- <tr style="display:none;>
                <th align="right">
                    GSP认证编号：
                </th>
                <td align="left">
                    <asp:TextBox ID="txtGSPCode" runat="server"></asp:TextBox>
                </td>
                <th align="right">
                    GSP认证有效期：
                </th>
                <td align="left">
                    <asp:TextBox ID="txtGSPTime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" runat="server"></asp:TextBox>
                </td>
            </tr>--%>
            <tr>
                <th align="right">
                    经营范围：
                </th>
                <td align="left" colspan="3">
                    <asp:TextBox ID="txtBusinessRange" runat="server" Height="104px" TextMode="MultiLine"
                        Width="501px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th align="right">
                    备注：
                </th>
                <td align="left" colspan="3">
                    <asp:TextBox ID="txtRemarks" runat="server" Height="104px" TextMode="MultiLine" Width="501px"></asp:TextBox>
                </td>
            </tr>
        </table>
        </div>
        <div class="listip">
            <ul>
                <li>提示:带（必填） 为必填项，同一企业信息请不要重复提交。</li>
                <li>说明：生产企业注册号示例：QSxxxx&nbsp; </li>
                <li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 配送企业示例&nbsp; QPxxxx</li>
                <%--<li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 国外生产企业示例：SJxxx</li>--%>
            </ul>
        </div>
        <div class="listctrlq">
            <asp:Button ID="btnAdd" runat="server" CssClass="btn" OnClick="btnAdd_Click" Text="提交"
                ToolTip="将企业信息提交给中心方" />
            &nbsp;&nbsp; 验证码：<asp:TextBox ID="txtCode" runat="server" CssClass="input" MaxLength="4"
                Width="40"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtCode"
                Display="Dynamic" ErrorMessage="*">（必填）</asp:RequiredFieldValidator><img alt="看不清？单击重新获取验证码" id="Img" title="看不清？单击重新获取验证码" src="CommonPage/Code.aspx"
                onclick="javascript:this.src = 'CommonPage/Code.aspx?' + Math.random();" style="border-width: 0px;
                vertical-align: bottom; cursor: hand;" />&nbsp;&nbsp;
                <input type="button" id="back" class="btn" value="返 回" onclick="javascript:window.location.href='../Admin/SystemManage/ComListSendPwd.aspx';" />
           </div>
    </div>
    </form>
</body>
</html>
